package com.pair.micro.common.exception;

import com.pair.micro.common.constant.MicroSystemError;
import lombok.Getter;

/**
 * 开放接口调用异常
 *
 * @author xubz
 * @since
 */
public class MicroOpenApiException extends RuntimeException {

  @Getter private MicroSystemError microSystemError;

  public MicroOpenApiException() {
    super(MicroSystemError.SYS_00200.getMsg());
  }

  public MicroOpenApiException(MicroSystemError microSystemError) {
    super(microSystemError.getMsg());
    this.microSystemError = microSystemError;
  }

  public MicroOpenApiException(MicroSystemError microSystemError, String exception) {
    super(exception);
    this.microSystemError = microSystemError;
  }
}
